import { getAction, deleteAction, putAction, postAction, httpAction, postFormData } from '@/api/manage'
const gateway = '/api/gateway/jic-backend-mall/mall'

const baseUrl = window._CONFIG['domianURL'] || '/jeecg-boot'

export const userFigure = (params) => postAction(gateway + `/evaluationSize/userFigure`, params) // 用户身材数据
export const userFigureExport = baseUrl + gateway + `/evaluationSize/userFigureExport` // 导出用户身材数据列表
export const feedbackProductList = (params) => postAction(gateway + `/evaluationSize/feedbackProductList`, params) // 商品尺码列表
export const feedbackProductUpdate = (params) => postAction(gateway + `/evaluationSize/feedbackProductUpdate`, params) // 商品尺码开启隐藏
export const productSizeExport = baseUrl + gateway + `/evaluationSize/productSizeExport` // 导出商品尺码列表
export const feedbackTry = (params) => postAction(gateway + `/evaluationSize/feedbackTry`, params) // 试穿尺码反馈列表
export const derivedResult = baseUrl + gateway + `/evaluationSize/derivedResult` // 导出反馈模板不合格项
export const feedbackExport = baseUrl + gateway + `/evaluationSize/feedbackExport` // 试穿尺码反馈导出查询结果
export const feedbackTryUpdate = (params) => postAction(gateway + `/evaluationSize/feedbackTryUpdate`, params) // 试穿尺码反馈修改
export const feedbackModelAdd = (params) => postAction(gateway + `/evaluationSize/feedbackModelAdd`, params) // 新增反馈模板
export const feedbackModelDetails = (params) => getAction(gateway + `/evaluationSize/feedbackModelDetails`, params) // 管理后台-社区数据概览
export const feedbackModelImport = baseUrl + gateway + `/evaluationSize/feedbackModelImport` // 导入试穿反馈列表
export const feedbackTemplate = baseUrl + gateway + `/evaluationSize/feedbackTemplate` // 下载试穿反馈导入模板
export const commentPage = (params) => postAction(gateway + `/evaluationSize/commentPage`, params) // 订单评价列表
export const commentReply = (params) => postAction(gateway + `/evaluationSize/commentReply`, params) // 回复评价
export const commentReplyHide = (params) => getAction(gateway + `/evaluationSize/commentReplyHide`, params) // 修改评价状态
export const commentReplyHandpick = (params) => postAction(gateway + `/evaluationSize/commentReplyHandpick`, params) // 设置精选/取消精选
export const commentReplyDelete = (params) => getAction(gateway + `/evaluationSize/commentReplyDelete`, params) // 删除回复
export const feedbackProduct = (params) => getAction(gateway + `/evaluationSize/feedbackProduct`, params) // 刷新商品
export const commentDerive = baseUrl + gateway + `/evaluationSize/commentDerive` // 导出订单评价
export const productSize = (params) => getAction(gateway + `/evaluationSize/productSize`, params) // 查询商品下所有尺码

export const feedbackOpenHide = (params) => getAction(gateway + `/evaluationSize/feedbackOpenHide`, params) // 尺码反馈显示隐藏

